<TABLE CLASS="TABLEBG" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" BORDER="0">
<!--
PlaceHolders used for getting details of user acts on for activity
<%#ActivityResourceIdentifier%>
<%#ActivityResourceName%>
<%#ActivityResourceEmail%>

PlaceHolders used for getting details of Loggedin Resources for activity
<%#ActivityLoggedInResourceIdentifier%>
<%#ActivityLoggedInResourceName%>
<%#ActivityLoggedInResourceEmail%>


-->
	<TR Class="N-MainBGColor">
		<TD class="heading2"  height=20>
			<B>Search Activities :
		</TD>
	</TR>
	<TR>
		<TD>
			<TABLE CLASS="TABLEBG" CELLSPACING="1" HEIGHT="100%" CELLPADDING="3" WIDTH="100%" BORDER="0" ID="Table6">
				<TR class="N-ListBGCOLORCOL2">
					<TD WIDTH="15%" CLASS="runtext1">
						Search By Saved<br>
						Search Criteria.
					</TD>
					<TD align="CENTER">
						<SELECT name="selsavedsearch" class=select1 onchange="javascript:SetActivitySet(this.value,this.form)">
							<OPTION value="0">Select Saved Search</OPTION>
							<%#savedactivityset%>
						</SELECT>
						<%#ErrActivitySets%>
					</TD>
					<TD align="right" valign=bottom>
						<table CELLSPACING="2" CELLPADDING="2" BORDER="0" ID="Table6" width=100%>
							<tr>
								<td>
									<IMG src="<%#VirtualDirectory%>/images/resource-calendar.gif" alt="Resource Calendar" style="cursor:hand" ONCLICK="OpenNewWin(1,2,0)">
								</td>
								<td>
									Resource Calendar
								</td>
								<td>
									<IMG src="<%#VirtualDirectory%>/images/alternate-resource.gif" alt="Alternate Resource" style="cursor:hand" ONCLICK="OpenNewWin(1,3,0)">
								</td>
								<td>
									Alternate Resource
								</td>
								<%#opencomment%><td>
									<IMG src="<%#VirtualDirectory%>/images/personalize.gif" alt="Personalize" style="cursor:hand" ONCLICK="OpenNewWin(1,1,0)">
								</td>
								<td>
									Personalize
								</td><%#closecomment%>
								<td>
										<IMG src="<%#VirtualDirectory%>/images/refresh.gif" alt="Refresh" style="cursor:hand" ONCLICK="javascript:location.href=location.href">
									</td>
									<td>
										Refresh
								</td>
							</tr>
						</table>
					</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
</TABLE>
</TD></TR>
<TR align="center" valign="top" Class="N-MainBGColor">
	<TD COLSPAN="5" CLASS="RUNTEXT1">
		<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="0" WIDTH="100%">
			<TR>
				<TD WIDTH="40%" class="runtext1" align=right>
					<INPUT type=hidden name="hiddenactivityset" value="">
					<INPUT type=hidden name="displayquerybuildervaluehidden" value="">
					<INPUT type=hidden name="querybuildervaluehidden" value="">
					<INPUT type=hidden name="ResourcesExpression" value="">
					<INPUT type=hidden name="ResourcesDispExpression" value="">
					<INPUT type=submit value="Search" class=button2 name="btnSearch" onclick="return SetDynamicValues()">
					<INPUT type=hidden name="datecorrectionfactor" value="">
					&nbsp;&nbsp;
					<!--<INPUT type=button value="Refresh" class=button2 name="btnRefresh" onclick="javascript:location.href=location.href">-->
				</TD>
				<TD WIDTH="60%">
					<%#HyperLink%>
				</TD>
			</TR>
		</TABLE>
	</TD>
</TR>
<!----Search Value -->
<SCRIPT>

var i=0;
var oexprstr;
var sExpression="<%#querybuildervalue%>";
var sDispExpression="<%#displayquerybuildervaluehidden%>";
var iOpenBrackets=0;

function init()
{
	if(sExpression != "")

	{
		document.getElementsByTagName("input")["querybuildervaluehidden"].value =  sExpression;
		document.getElementsByTagName("input")["displayquerybuildervaluehidden"].value =  sDispExpression;
	}
}
function SetDynamicValues()
{
	queryval = document.getElementsByTagName("input")["querybuildervaluehidden"].value;
	queryval = trim(queryval);
	if(queryval == "")
	{
		alert('Invalid search.')
		return false;
	}
	else
	{
		return true;
	}
}
function SetActivitySet(value,objform)
	{
		if(value == 0)
		{
			alert('Please select a valid value.');
		}
		else
		{
			if(value == -1)
			{
				newurl = "?DisplayType=deleteactivityset&application=<%#applicationname%>&workflow=<%#workflowname%>&datecorrectionfactor=<%#datecorrectionfactor%>";
				window.open(newurl,"DeleteActivitySet","height=300,width=650,resizable=yes")

			}
			else
			{
				objform.submit();
			}
		}
	}
init();
document.getElementsByTagName("input")["datecorrectionfactor"].value  = GetUTCOffSet()
</script>